function db(sql, callback) {
    var mysql = require('mysql');
    var connection = mysql.createConnection({
        host: 'localhost',
        user: 'root',
        password: '',
        database: '魏了睡'
    });

    connection.connect();

    connection.query(sql, callback);

    connection.end();
}
module.exports = { db }